<?php
/**
 * Created by 王跃达.
 * User: 小马出行
 * Date: 2017/8/24
 * Time: 16:17
 */

namespace app\api\model;


use think\Db;
use think\Model;

class RedModel extends Model
{


    public function __construct()
    {
        parent::__construct();

    }

    /**
     * 获取UID获取用户红包
     */
    public function getRedByUid($uid){
        $where['uid']=$uid;
        return Db::name("red")->where($where)->find();
    }


}